<template>
  <el-table-column :label="columns.label" :prop="columns.prop">
    <template v-for="item in columns.children" :key="item.id">
      <my-colums v-if="item.children && item.children.length" :columns="item"></my-colums>
      <el-table-column v-else :key="item.name" :label="item.label" :prop="item.prop"> </el-table-column>
    </template>
  </el-table-column>
</template>

<script>
export default {
  mame: 'MyColums',
}
</script>
<script setup>
import {} from 'vue'
const props = defineProps({
  columns: {
    type: Array,
    default: () => {
      return []
    },
  },
})
console.log(props.columns)
</script>

<style lang="css" scoped>
</style>